import base from './base';
import vm from '@/main';

export default class log extends base {
    /**
* [getAuthList 获取权限组列表]
*
* @return  {[type]}  [return description]
*/
    static getLogList (params) {
        let url = 'Log/index';
        return base.get(url, params);
    }

    /**
* [delUser 删除日志]
*
* @return  {[type]}  [return description]
*/
    static delLog (params) {
        let url = 'Log/del';
        return this.get(url, params, true).then(data => {
            vm.$Message.success(data.msg);
        }).catch(error => {
            vm.$Message.error(error.message);
            console.error(error);
            throw error;
        });
    }
}
